package com.origin.uilibrary.xrecycleview.xr;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

import androidx.annotation.Nullable;

public abstract class BaseLoadingMoreFooter extends LinearLayout {
    public BaseLoadingMoreFooter(Context context) {
        this(context, null);
    }

    public BaseLoadingMoreFooter(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, -1);
    }

    public BaseLoadingMoreFooter(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        this(context, attrs, defStyleAttr, -1);
    }

    public BaseLoadingMoreFooter(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        init();
    }
    public abstract void initContainerView();

    private void init() {
        initContainerView();
    }

    public abstract void destroy();

    public abstract void setState(int state);
}
